/**
 * splash页
 * 由 WangYu 创建
 * 日期 2017/9/6
 */
import React, {Component} from 'react';
import {
    StyleSheet,
    Text,
    View,
    Image,
    ToastAndroid, StatusBar,TouchableNativeFeedback,
} from 'react-native';
import { Actions,ActionConst} from "react-native-router-flux";
export default class SplashPage extends Component {

    constructor(props) {
        super(props);
        StatusBar.setTranslucent(true);
        StatusBar.setBackgroundColor('transparent');
    }

    render() {
        return (
        <View style={styles.container}>
            <StatusBar translucent={true} barStyle="light-content"/>
            <Image style={styles.splash}
                   source={{uri:'welcome'}}/>
        </View>
        );
    }

    componentDidMount() {
        setTimeout(()=>{
           Actions.MainPage({type:'reset'});
        },2000);
    }
}

const styles = StyleSheet.create({
    container: {
        flex: 1,
    },
    splash:{
        flex:1,
    }
});
